package cn.com.api.service;

import java.util.Map;

import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiAddress;
import cn.com.api.requestpage.CancelReasonPage;
import cn.com.api.requestpage.DianPingPage;
import cn.com.api.requestpage.OrderConfirmPage;
import cn.com.api.requestpage.OrderMessagePage;
import cn.com.api.requestpage.PaytypeConfirmPage;
import cn.com.api.requestpage.SearchOrdersPage;
import cn.com.api.requestpage.SendOrderPage;
import cn.com.api.requestpage.ShopOrderPage;

@Service
public interface CheckService {
	public boolean checkToken(String u_id, String token, Map<String, Object> map)
			throws Exception;

	public boolean checkRequestOrderConfirmPage(
			OrderConfirmPage orderConfirmPage, Map<String, Object> map)
			throws Exception;

	public boolean checkPaytypeConfirmPage(
			PaytypeConfirmPage paytypeConfirmPage, Map<String, Object> map)
			throws Exception;

	public boolean checkParams(Map<String, String> parammap,
			Map<String, Object> map);

	public boolean checkChargeMoney(Map<String, String> parammap,
			Map<String, Object> map);

	public boolean checkAddCar(Map<String, String> parammap,
			Map<String, Object> map);

	public boolean checkAddCar2(Map<String, String> params,
			Map<String, Object> map);

	public boolean checkMyOrder(SearchOrdersPage searchOrdersPage,
			Map<String, Object> map) throws Exception;

	public boolean checkLogin(Map<String, String> parammap,
			Map<String, Object> map);

	public boolean checkDianPing(DianPingPage dianPingPage,
			Map<String, Object> map) throws Exception;

	public boolean checkCancelReasonPage(CancelReasonPage cancelReasonPage,
			Map<String, Object> map) throws Exception;

	public boolean checkOrderMessagePage(OrderMessagePage orderMessagePage,
			Map<String, Object> map) throws Exception;

	public boolean checkPointsOrderPage(OrderConfirmPage orderConfirmPage,
			Map<String, Object> map);
	
	public boolean checkChargeGiftPage(OrderConfirmPage orderConfirmPage,
			Map<String, Object> map);
	
	public boolean checkOrderAddressPage(OrderConfirmPage orderConfirmPage,
			Map<String, Object> map);
	
	public boolean checkAddress(ApiAddress apiAddress,Map<String, Object> map);

	/***************************** 商户端 start **************************************************/
	public boolean checkShopOrders(SearchOrdersPage searchOrdersPage,
			Map<String, Object> map) throws Exception;

	public boolean checkShopOrderPage(ShopOrderPage shopOrderPage,
			Map<String, Object> map);

	/***************************** 商户端 end **************************************************/

	/***************************** 配送端 start **************************************************/
	public boolean checkSendOrderPage(SendOrderPage sendOrderPage,
			Map<String, Object> map);

	public boolean checkSendOrderPageIdentifyCode(SendOrderPage sendOrderPage,
			Map<String, Object> map);

	/***************************** 配送端 end **************************************************/

	//设置头条用户默认的关注频道
	public void setHeadLineDefaultCate(String user_id);
}
